package com.uy.cuantoconocesdeuruguay.user;


public class UserData {
	private static final int AD_SHOW_INTERVAL = 3;
	private long lastTimeSkipQuestion;
	private int score;
	private String deviceID;
	private String facebookid;
	private String facebookName;
	private String facebookImage;
	private String regId;
	private boolean facebookLoaded;
	private int singlePlayerAdCounter;
	private int challengeAdCounter;

	public long getLastTimeSkipQuestion() {
		return lastTimeSkipQuestion;
	}

	public void setLastTimeSkipQuestion(long lastTimeSkipQuestion) {
		this.lastTimeSkipQuestion = lastTimeSkipQuestion;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getDeviceID() {
		return deviceID;
	}

	public void setDeviceID(String deviceID) {
		this.deviceID = deviceID;
	}

	public String getFacebookid() {
		return facebookid;
	}

	public void setFacebookid(String facebookid) {
		this.facebookid = facebookid;
	}

	public String getFacebookName() {
		return facebookName;
	}

	public void setFacebookName(String facebookName) {
		this.facebookName = facebookName;
	}

	public String getFacebookImage() {
		return facebookImage;
	}

	public void setFacebookImage(String facebookImage) {
		this.facebookImage = facebookImage;
	}

	public String getRegId() {
		return regId;
	}

	public void setRegId(String regId) {
		this.regId = regId;
	}

	public boolean isFacebookLoaded() {
		return facebookLoaded;
	}

	public void setFacebookLoaded(boolean facebookLoaded) {
		this.facebookLoaded = facebookLoaded;
	}

	public boolean shuldShowSinglePlayerAd() {
		++singlePlayerAdCounter;
		if (singlePlayerAdCounter == AD_SHOW_INTERVAL){
			singlePlayerAdCounter = 0;
			return true;
		}
		return false;
	}

	public boolean shuldShowChallengeAd() {
		++challengeAdCounter;
		if (challengeAdCounter == AD_SHOW_INTERVAL){
			challengeAdCounter = 0;
			return true;
		}
		return false;
	}
}
